package com.situ.crm.common.exception;

import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = false)
public class BusinessException extends RuntimeException {

	private static final long serialVersionUID = -6227229989021594985L;

	private Integer code;

	private String msg;

	private String key;// 国际化文件中的key值

	public BusinessException() {

	}

	public BusinessException(String msg) {
		this.msg = msg;
	}

	public BusinessException(String key, String msg) {
		this.key = key;
		this.msg = msg;
	}

}
